package com.baizhi.app.controller;

import com.baizhi.app.entity.Album;
import com.baizhi.app.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class AlbumController {
    @Autowired
    private AlbumService albumService;
    @RequestMapping("/showAllAlbum")

    public List<Album> showAllAlbum(){
        return albumService.showAlbum();
    }
}
